export default [
  //login
  {
    path: '/user',
     component: '../layouts/UserLayout',
     routes: [
       { path: '/user', redirect: '/user/login' },
       { path: '/user/login', component: './User/Login' },
     ],
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    routes: [
      { path: '/', redirect: '/members' },
      {
        path: '/members',
        name: '成员',
        routes: [
          {
            path: '/members',
            component: './Members',
          }
        ]
      },
      {
        path: '/goods',
        name: '商品',
        routes: [
          {
            path: '/goods',
            component: './Goods'
          }
        ]
      },
      {
        path: '/setting',
        name: '设置',
        routes: [
          {
            path:'category',
            name:'类别',
            component:'./Category'
          },
          {
            path: 'warehouse',
            name: '仓库',
            component: './Setting/Warehouse'
          },
          {
            path: 'roles',
            name: '角色',
            component: './Setting/Roles'
          }
        ]
      }
    ]
  }
]
